<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
    <script type="text/javascript" src="/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/Public/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" src="/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
<style type="text/css">

body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {
	color: #000000; font-size: 12;
	padding:10px; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
	padding:10px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
a span{color:white;}
</style>
<script>
var  highlightcolor='#d5f4fe';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}
</script>


</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="<?php echo ADMIN_PUC;?>images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 栏目添加</span></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
<form action="" method="post" enctype="multipart/form-data" name="">
      <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce" onmouseover="changeto()"  onmouseout="changeback()">
      <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">栏目名称</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><input type="text" name="cate_name"></td>
      </tr>

	<tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">栏目英文名称</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><input type="text" name="cate_ename"></td>
    </tr>    

	<tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">栏目关键字</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><input type="text" name="cate_keywords"></td>
    </tr>        
      
	<tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">栏目描述</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6">
          <textarea name="cate_desc" cols="30" rows="5"></textarea>
        </td>
    </tr>      

	<tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">栏目缩略图</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><input type="file" name="cate_pic"></td>
    </tr>

	<tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">栏目类型</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6">
        	<input checked="checked" type="radio" name="cate_type" value="0">封面栏目
          <input type="radio" name="cate_type" value="1">列表栏目
        	<input type="radio" name="cate_type" value="2">产品栏目
        </td>
    </tr>   
  <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19">
          <div align="center">上级栏目</div>
        </td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6">
          <select name="parentid">
            <option value="0">顶级栏目</option>
          <volist name="cateres" id="vo">
            <option value="{$vo.cate_id}"><?php echo str_repeat('-',$vo[level]*2);?>{$vo.cate_name}</option>
          </volist>
          </select>
        </td>
    </tr> 
  <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19">
          <div align="center">栏目内容</div>
        </td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6">
          <textarea name="cate_content" id="content"></textarea>
        </td>
    </tr> 
  <tr>
        <td height="20" colspan="2" align="center" bgcolor="#FFFFFF" class="STYLE19">
          <input type="submit" name="" value="提交">
        </td>
    </tr>    
  </table>
</form>
  </td>
  </tr>
</table>
<script type="text/javascript">
    UE.getEditor('content',{initialFrameWidth:600,initialFrameHeight:460,});
</script>
</body>
</html>
